package com.ifacebox.client.tools;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author znn
 */
public class SspUploadConfig {
    private String file;
    private String cookie;
    private String token;
    private String date;
    private String orderId;
    private String opUser;
    private String optName;
    private String logId;
    private String appKey;
    private String sign;


    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file;
    }

    public String getCookie() {
        return cookie;
    }

    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOpUser() {
        return opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }

    public String getOptName() {
        return optName;
    }

    public void setOptName(String optName) {
        this.optName = optName;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getAppKey() {
        return appKey;
    }

    public void setAppKey(String appKey) {
        this.appKey = appKey;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @JSONField(serialize = false)
    public boolean isEmpty() {
        return file == null || file.isEmpty()
                || cookie == null || cookie.isEmpty()
                || token == null || token.isEmpty()
                || opUser == null || opUser.isEmpty()
                || date == null || date.isEmpty()
                || orderId == null || orderId.isEmpty()
                || optName == null || optName.isEmpty()
                || logId == null || logId.isEmpty()
                || appKey == null || appKey.isEmpty()
                || sign == null || sign.isEmpty();
    }
}
